package jmine.tec.persist.schema.tableperclass.tricky;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.SequenceGenerator;

import bancosys.tec.component.Documentation;

@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@SequenceGenerator(name = "SEQ_PRCLAS", sequenceName = "SEQ_PRCLAS")
public abstract class AbstractTablePerClassEntity<T> extends ParentMappedSuperclass<T> {

    private Long id;

    /**
     * @return the id
     */
    @Id
    @GeneratedValue(generator = "SEQ_PRCLAS")
    @Column(name = "COD_PER_CLASS", precision = 17, nullable = false)
    @Documentation("CODIGO")
    public Long getId() {
        return this.id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
}
